<?php if ($uploaded_material->getLocalFile() != ''){ ?>
<a href="<?php echo public_path('/uploads/uploaded_material/' . $uploaded_material->getLocalFile()) ?>">Download File</a>
<?php } ?>
<?php if ($uploaded_material->getUrl() != ''){ ?>
<a href="<?php echo $uploaded_material->getUrl() ?>">Download from URL</a>
<?php } ?>